package com.example.ass7.collision;

import com.example.ass7.sprite.Ball;
import com.example.ass7.sprite.Block;
import com.example.ass7.sprite.Paddle;

/**
 * @author Meirav Ben Izhak
 */
public class PrintingHitListener implements HitListener {
    @Override
    public void hitEvent(Block beingHit, Paddle beingHit2, Ball hitter) {
        if (beingHit != null) {
            System.out.println("A Block with " + beingHit.getHitPoints()
                    + " points was hit.");
        }
    }
}
